FROM ubuntu:16.04


COPY sources.list /etc/apt/sources.list

WORKDIR /home

RUN apt-get update \
    && apt-get upgrade -y \
    && apt-get install python python-pip git liblapack-dev -y \
    && pip install --upgrade pip \
    && pip install --user numpy Cython grpcio grpcio-tools -i https://pypi.tuna.tsinghua.edu.cn/simple\
    && git clone https://gitee.com/fan_yang/ikfastpy.git \
    && cd ikfastpy/ \
    && python setup.py build_ext --inplace

CMD cd /home/ikfastpy/ && python demo.py

EXPOSE 50051